import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# 窗口最大化
driver.maximize_window()

driver.get("https://www.baidu.com/")

# driver.find_element(By.LINK_TEXT,"新闻").click()
# driver.find_elements(By.LINK_TEXT,"新闻")[0].click()
driver.find_element(By.PARTIAL_LINK_TEXT,"闻").click()

time.sleep(4)
driver.close()